<template>
  <div>
    <el-form v-if="false">
      <el-form-item>
        <el-input-number></el-input-number>
      </el-form-item>
    </el-form>
    <aplid-base-crud ref="crud" v-bind="baseConfig">
      <template #isRepetition="{ row }">
        <div>
          <el-tag  :type="row.isRepetition == 0 ? 'danger' : 'success'">{{ row.isRepetition == 0 ? '否' : '是' }}</el-tag>
        </div>
      </template>
      <template #isUse="{ row }">
        <div>
          <el-tag  :type="row.isUse == 0 ? 'danger' : 'success'">{{ row.isUse == 0 ? '停用' : '启用' }}</el-tag>
        </div>
      </template>
      <template #fieldConfigDialog="{row}">
        <div>
          <FieldConfig :tableConfigId="row.id" :tableName="row.tableName"></FieldConfig>
        </div>
      </template>
    </aplid-base-crud>
  </div>
</template>

<script setup lang="ts">
import { baseConfig } from './config';
import FieldConfig from './components/FieldConfig.vue'
</script>

<style scoped>

</style>